package com.dk.service.impl;

import com.dk.pojo.TCarType;
import com.dk.mapper.TCarTypeMapper;
import com.dk.service.ITCarTypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 车辆分类表 服务实现类
 * </p>
 *
 * @author author
 * @since 2021-10-30
 */
@Service
public class TCarTypeServiceImpl extends ServiceImpl<TCarTypeMapper, TCarType> implements ITCarTypeService {

    @Autowired
    private TCarTypeMapper tCarTypeMapper;

    @Override
    public List<TCarType> getInfoAll() {
        return tCarTypeMapper.selectList(null);
    }

    @Override
    public Integer updateInfo(TCarType tCarType) {
        Integer i = tCarTypeMapper.updateById(tCarType);
        return i;
    }
}
